<nav>
<?php $id = $sf_user->getAttribute('beca_id') ?>
    <?php if($id == ''):?>
        <?php include_partial('menu', array('id'=> 1))?>
    <?php else:?>
        <?php include_partial('menu', array('id'=> $id))?>
    <?php endif;?>
</nav>
<article id="contenedorPais">    

<form method="POST" action='<?php echo url_for('becas/delete');?>'>
<table class="table1">
  <thead>
    <tr>
        <th colspan="7"><h2 id="titulo_form">LISTADO DE CONVOCATORIAS</h2></th>
    </tr>
    <tr>            
      <th>Logo</th>
      <th>Nombre</th>
      <th>Plazo</th>
      <th>Fecha inicio</th>
      <th>Fecha fin</th>
      <th>Entidad que ofrece la convocatoria</th>
      <th>Eliminar</th>
    </tr>
  </thead>  
  <tbody>
    <?php foreach ($becas->getResults() as $beca):?>
    <tr>              
      <td><?php echo image_tag('/uploads/logos/'.$beca->getLogo(), 'id=img_logo', 'alt=logo'.$beca->getId()) ?></td>
      <td><a id="nombre_beca" href="<?php echo url_for('becas/show?id='.$beca->getId()) ?>"><?php echo $beca->getNombre() ?></td>      
      <td><?php echo $beca->getPlazo() ?></td>
      <td><?php echo $beca->getFechaInicio() ?></td>
      <td><?php echo $beca->getFechaFin() ?></td>      
      <td><?php echo $beca->getEntidad()->getNombre()?></td>
      <td>         
          <input type='checkbox' name='becas[]' value='<?php echo $beca->getId()?>'/>          
      </td>
    </tr>
    </form>
    <?php endforeach; ?>
  </tbody>
  <tfoot>
  <tr>            
   <td><?php include_partial('paginacion', array('becas'=> $becas)) ?></td>   
   <td></td>
   <td></td>
   <td></td>
   <td></td>   
   <td></td>   
   <td><input type="submit" value="Eliminar" /></td>      
  </tr>  
  </tfoot>
  </table>
</form>
</article>